package com.baidu.management.service.impl;
import com.baidu.management.entity.SysUser;
import com.baidu.management.repository.SysUserRepository;
import com.baidu.management.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 用户表 业务层
 */
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    SysUserRepository sysUserRepository;
    /**
     * 显示所有用户
     */
    @Override
    public List<SysUser> selectUserList() {
        return sysUserRepository.findAll();
    }
}
